package com.lgf.view;

import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.JTabbedPane;

import com.lgf.view.panel.CodeNotesPanel;

public class MainView implements IView<JFrame> {

	public JFrame layout() {
		JFrame mainFrame = new JFrame("阿婷");
		GridLayout gridLayout = new GridLayout();
		mainFrame.setSize(700, 350);
		mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		mainFrame.setLayout(gridLayout);
		mainFrame.setVisible(true);

		CodeNotesPanel codeNotesPanel = new CodeNotesPanel();
		JTabbedPane tabPanel = new JTabbedPane();
		tabPanel.addTab("注释代码处理", codeNotesPanel.layout());
		mainFrame.add(tabPanel);
		return mainFrame;
	}

}
